#include <bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
	
	int a,b;
	cin >> a >> b;
	if(a==0&&b==0)
	{
		cout << "biii" << endl;
		cout << "stop" << endl;
	}
	else if(a==1&&b==0)
	{
		cout << "dudu" << endl;
		cout << "move" << endl;
	}
	else if(a==2&&b==0)
	{
		cout << "-" << endl;
		cout << "stop" << endl;
	}
	else if(a==0&&b==1)
	{
		cout << "-" << endl;
		cout << "stop" << endl;
	}
	else if(a==1&&b==1)
	{
		cout << "-" << endl;
		cout << "move" << endl;
	}
	else if(a==2&&b==1)
	{
		cout << "-" << endl;
		cout << "stop" << endl;
	}
	return 0;
}
